package com.company.user.req;

import com.company.user.entity.DepartmentEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;


@ApiModel("添加公司或者部门入参")
public class AddDepartmentReq {

    @ApiModelProperty(value = "公司名 或者部门名",required = true)
    private String departmentName;

    @ApiModelProperty(value = "父id 若为最上一层传none",required = true)
    private String departmentFid;

    @ApiModelProperty(value = "排序",required = true)
    private Integer sort;

    public String getDepartmentName() {
        return departmentName;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    public String getDepartmentFid() {
        return departmentFid;
    }

    public void setDepartmentFid(String departmentFid) {
        this.departmentFid = departmentFid;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public void copyTo(DepartmentEntity department){
        department.setDepartmentName(this.getDepartmentName());
        department.setDepartmentFid(this.getDepartmentFid());
        department.setSort(this.getSort());
    }
}
